import { Breadcrumb, Menu } from 'antd';
import styles from './index.less';
import useStore from '@/context/useStore'
import { useEffect } from 'react';

const menu = (
  <Menu>
    <Menu.Item>
      <a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/">
        计划
      </a>
    </Menu.Item>
    <Menu.Item>
      <a target="_self" rel="noopener noreferrer" href="http://localhost:8000/teachers/training/training">
        进度
      </a>
    </Menu.Item>
    <Menu.Item>
      <a target="_blank" rel="noopener noreferrer" href="http://www.tmall.com/">
        答辩
      </a>
    </Menu.Item>
    <Menu.Item>
      <a target="_blank" rel="noopener noreferrer" href="http://www.tmall.com/">
        计划（管理）
      </a>
    </Menu.Item>
  </Menu>
);
const menu3 = (
  <Menu>
    <Menu.Item>
      <a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/">
        问答列表
      </a>
    </Menu.Item>
    <Menu.Item>
      <a target="_self" rel="noopener noreferrer" href="http://localhost:8000/teachers/manage/manage">
        问答管理
      </a>
    </Menu.Item>
  </Menu>
);
const PostHead = () => {
  let {training} =useStore()
  let list = [
    {

    }
  ]
  useEffect(() => {
    async function ync() {
      let res = await training.getinfo();
      console.log(res,8888888888888);
      console.log(training.user&&training.user,1111111111111111111);
    }
    ync()
    
  },[])
  return <div className={styles.posthead}>
    <img data-v-7178e8ae="" src="http://111.203.59.61:8060/static/img/w_bw.172a76e5.png" alt="" style={{ marginRight: "68px", marginLeft: "26px", width: "110px", height: "30px" }} />
      <Breadcrumb className={styles.middle} separator=''>
      <Breadcrumb.Item>
          <a href="http://localhost:8000/post/postClass">岗位</a>
        </Breadcrumb.Item>
        <Breadcrumb.Item>
          <a href="">项目</a>
        </Breadcrumb.Item>
        <Breadcrumb.Item overlay={menu}>
          <a href="">实训</a>
        </Breadcrumb.Item>
        <Breadcrumb.Item overlay={menu}>
          <a href="">面试</a>
        </Breadcrumb.Item>
        <Breadcrumb.Item overlay={menu3}>
          <a href="">问答</a>
        </Breadcrumb.Item>
      </Breadcrumb>
    <div>
      {/* <img src={`${"http://111.203.59.61:8060/"+(training.user.avatar&&training.user.avatar)}`} alt=""/> */}
      <img style={{ width: '40px', height: '40px', borderRadius: "50%", marginLeft: "500px" }} src="http://111.203.59.61:8060/file_service/group1/M00/00/18/rBsCHWCect6AAI6AAAC1i-52NMk29.jpeg" alt="" />
      <span style={{color: "#fff",marginLeft:"20px"}}>郭老师</span>
    </div>
  </div>
}
export default PostHead